if (USE_PSI3)

  set(name_for_this_test "h2o_sto3g_simple_uj")

  set(formic_dir_for_this_test ${FORMIC_BINARY_DIR}/Testing/tests/${name_for_this_test})

  file(MAKE_DIRECTORY ${formic_dir_for_this_test})

  configure_file(input.dat ${formic_dir_for_this_test}/input.dat COPYONLY)
  configure_file(input.txt ${formic_dir_for_this_test}/input.txt COPYONLY)

  add_test(NAME ${name_for_this_test}_psi3
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND ${PSI3_EXE} input.dat
          )

  add_test(NAME ${name_for_this_test}_fqmc
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND fqmc input.txt output.txt
          )

  add_test(NAME ${name_for_this_test}_check_results
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND test_checker -compare_float "psi3 scf energy"
                                               output.dat
                                               "SCF total energy   ="
                                               -1
                                               -74.767268587139
                                               1.0e-9
                                -compare_float "fqmc initial energy"
                                               output.txt
                                               "mean ="
                                               0
                                               -74.795339524447
                                               1.0e-9
                                -compare_float "fqmc final energy"
                                               output.txt
                                               "mean ="
                                               -1
                                               -74.881948817556
                                               1.0e-6
          )

  unset(formic_dir_for_this_test)

  unset(name_for_this_test)

endif (USE_PSI3)
